package org.phalanx.client.mapeditor;

import java.awt.Color;
import javax.swing.BorderFactory;
import javax.swing.BoxLayout;
import javax.swing.JPanel;

public class PhalanxEditorSideBarPanel extends JPanel {
	private PhalanxMapEditorPanel editorPanel;
	private PhalanxTileInformationPanel infoBar;

	public PhalanxEditorSideBarPanel(PhalanxMapEditorPanel edit) {
		this.editorPanel = edit;
		initializePanel();
		setUpInfoPanel();
	}

	private void initializePanel() {
		this.setBackground(Color.black);
		this.setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
		this.setBorder(BorderFactory.createLineBorder(Color.white, 2));
	}

	private void setUpInfoPanel() {
		infoBar = new PhalanxTileInformationPanel(editorPanel);
		this.add(infoBar);
	}

	public PhalanxTileInformationPanel getInfoPanel() {
		return infoBar;
	}
}
